home *** CD-ROM | disk | FTP | other *** search
- Path: news.io.com!usenet
- From: langj@jcave.com (Jonathan Lang)
- Newsgroups: comp.lang.c++
- Subject: Re: classes nested within template classes
- Date: Sun, 03 Mar 1996 20:59:21 GMT
- Organization: Illuminati Online
- Message-ID: <4hctfj$gmg@anarchy.io.com>
- References: <NICKC.96Mar3183317@uxe.liv.ac.uk>
- NNTP-Posting-Host: p152.jcave.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- nickc@liv.ac.uk (Spider plant breeding program) wrote:
-
- >(Yes, the problem was found with a linked list!)
- >The SUN C++ compiler I'm using refuses to allow non-inline functions in classes
- >nested with template classes. It generates errors of the form:
-
- >"linkedlist.h", line 30: Error: Member functions in a class local to a template
- >must be defined in the class.
-
- >Should I be able to have non-inline functions within classes local to a template
-
- Yes, you should be able to do this.
- -- Jonathan Lang (langj@jcave.com)
-
-